package Books;

public class towork {
    private String bname; //书名
    private String author; //作者
    private int perice; //价格
    private String type; //类型
    private boolean isBrorrowed; //是否被借阅

    public void Book(String bname, String author, int perice, String type) {
        this.bname = bname;
        this.author = author;
        this.perice = perice;
        this.type = type;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getPerice() {
        return perice;
    }

    public void setPerice(int perice) {
        this.perice = perice;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isBrorrowed() {
        return isBrorrowed;
    }

    public void setBrorrowed(boolean brorrowed) {
        isBrorrowed = brorrowed;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + bname + '\'' +
                ", author='" + author + '\'' +
                ", perice=" + perice +
                ", type='" + type + '\'' +
                ", isBrorrowed=" + isBrorrowed +
                '}';
    }
}
